﻿using Messhall.Application.Dto;
using Messhall.Application.Dto.Users;
using Messhall.Application.Dto.Users.Responses;
using Messhall.Domain.Permission.BusinessObjects;
using Messhall.Domain.Permission.IRepositorys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Messhall.Permission.Service.AppService
{
    public class UsersAppService : SerivcesBase
    {
        public readonly IUsersRepository _usersRepository;

        /// <summary>
        /// 构造函数
        /// </summary>
        public UsersAppService(IUsersRepository usersRepository)
        {
            _usersRepository = usersRepository;
        }

        /// <summary>
        /// 分页获取用户列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public async Task<PagingResponseBase<UserPagingResponse>> GetPagingAsync(UserPagingRequest request)
        {
            return await _usersRepository.PagingAsync(request);
        }


    }
}
